﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperSerialization.Tree
{
    /// <summary>
    /// The base node of the document tree.
    /// </summary>
    class BaseNode : Node
    {
        /// <summary>
        /// The top level elements of this document.
        /// </summary>
        public Node[] Values;

        /// <summary>
        /// Constructs a new base node.
        /// </summary>
        /// <param name="values">An array of child nodes.</param>
        public BaseNode(Node[] values)
        {
            this.Values = values;
        }

        public override void Accept(TreeVisitor.AbstractVisitor visitor)
        {
            visitor.VisitBase(this);
        }
    }
}
